+Fri Apr 5 01:06:15 2002 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
+ upon NULL return from gdk_utf8_to_string_target().
+
+ * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
+ return value comment to mention NULL returns upon EMFILE.
+
Thu Apr 4 22:35:42 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* tests/testgtk.c (menu_items): revert accidentally commited
static color.
Tue Apr 2 11:10:13 2002 Jonathan Blandford <jrb@redhat.com>
+
* gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
sort_func correctly, 77030
+Fri Apr 5 01:06:15 2002 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
+ upon NULL return from gdk_utf8_to_string_target().
+
+ * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
+ return value comment to mention NULL returns upon EMFILE.
+
Thu Apr 4 22:35:42 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* tests/testgtk.c (menu_items): revert accidentally commited
static color.
Tue Apr 2 11:10:13 2002 Jonathan Blandford <jrb@redhat.com>
+
* gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
sort_func correctly, 77030
+Fri Apr 5 01:06:15 2002 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
+ upon NULL return from gdk_utf8_to_string_target().
+
+ * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
+ return value comment to mention NULL returns upon EMFILE.
+
Thu Apr 4 22:35:42 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* tests/testgtk.c (menu_items): revert accidentally commited
static color.
Tue Apr 2 11:10:13 2002 Jonathan Blandford <jrb@redhat.com>
+
* gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
sort_func correctly, 77030
+Fri Apr 5 01:06:15 2002 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
+ upon NULL return from gdk_utf8_to_string_target().
+
+ * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
+ return value comment to mention NULL returns upon EMFILE.
+
Thu Apr 4 22:35:42 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* tests/testgtk.c (menu_items): revert accidentally commited
static color.
Tue Apr 2 11:10:13 2002 Jonathan Blandford <jrb@redhat.com>
+
* gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
sort_func correctly, 77030
+Fri Apr 5 01:06:15 2002 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
+ upon NULL return from gdk_utf8_to_string_target().
+
+ * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
+ return value comment to mention NULL returns upon EMFILE.
+
Thu Apr 4 22:35:42 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* tests/testgtk.c (menu_items): revert accidentally commited
static color.
Tue Apr 2 11:10:13 2002 Jonathan Blandford <jrb@redhat.com>
+
* gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
sort_func correctly, 77030
+Fri Apr 5 01:06:15 2002 Tim Janik <timj@gtk.org>
+
+ * gdk/x11/gdkwindow-x11.c (set_text_property): fix segfault
+ upon NULL return from gdk_utf8_to_string_target().
+
+ * gdk/x11/gdkselection-x11.c (gdk_utf8_to_string_target): fix
+ return value comment to mention NULL returns upon EMFILE.
+
Thu Apr 4 22:35:42 2002 Soeren Sandmann <sandmann@daimi.au.dk>
* tests/testgtk.c (menu_items): revert accidentally commited
static color.
Tue Apr 2 11:10:13 2002 Jonathan Blandford <jrb@redhat.com>
+
* gtk/gtkliststore.c (gtk_list_store_set_sort_func): set the
sort_func correctly, 77030
*
* Return value: the newly-allocated string, or %NULL if the
* conversion failed. (It should not fail for
- * any properly formed UTF-8 string.)
+ * any properly formed UTF-8 string unless system
+ * limits like memory or file descriptors are exceeded.)
**/
gchar *
gdk_utf8_to_string_target (const gchar *str)
{
prop_type = XA_STRING;
prop_text = gdk_utf8_to_string_target (utf8_str);
- prop_length = strlen (prop_text);
+ prop_length = prop_text ? strlen (prop_text) : 0;
prop_format = 8;
}
else